<div class="page-spanner">
<div class="center-holder util-panel shadow central-area">
<div id="menubar" class="center-holder">
<?php 
try {
	$result = $dbManager->processQuery("SELECT menu_name, menu_url, menu_active FROM menu ORDER BY menu_seq",$conn);
	$lw->debug("Released connection");
	$lw->debug("got menu list from db");
	$lw->debug("writing menu items");
	while ($row = mysql_fetch_row($result)) {
?>
<div class="menubutton">
<?php
		if ($row[2] == "Y") {
?>
<span class="enabled_menu clickable" id="<?php echo str_replace(" ", "_", $row[0])?>" onclick="loadPage('<?php echo $row[1]?>',this.id)">
<?php
		} else {
?>
<span class="disabled_menu non-clickable" id="<?php echo str_replace(" ", "_", $row[0])?>" title="Inactive at this moment">
<?php
		}
		echo $row[0];
?>
</span>
</div>
<?php
	}
} catch (Exception $e) {
	$lw->fatal($e);
	include("error_page.php");
} 
?>
</div>
</div>
</div>
